package com.pattern.builder;

/**
 * @Description: 创建者--指挥长
 * @Author: whp
 * @Date: 2021-01-28 10:32
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    //产品构建 组装
    public BuilderProduct construct(){
        builder.partA();
        builder.partB();
        builder.partC();
        return builder.getResult();
    }
}
